import type { Lesson } from '../education/lesson'
import type { ClassInfo } from '../education/classInfo'
import http from '@/utils/http'

export interface ScheduleLesson extends Lesson {
  classInfo: ClassInfo
  campusName: string
  classroomName: string
}

export interface ScheduleLessonQuery {
  lessonDateFrom?: string
  lessonDateTo?: string
}

/** 查询教师课表 */
export function getScheduleLessonList(query: ScheduleLessonQuery) {
  return http.get<ScheduleLesson[]>(`/t/schedule/lesson/list`, query)
}
